package com.hgl.bi.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hgl.bi.web.entity.RoleEntity;

import java.util.List;

/**
 * @program: BI
 * @description: 角色持久层
 * @author: hgl
 * @create: 2025-02-12 16:07
 */
public interface RoleMapper extends BaseMapper<RoleEntity> {

    boolean awardPermission(Long roleId, List<Long> pmtIds);

    List<Long> selectRolePermissions(Long id);

    boolean removePermission(Long roleId, List<Long> pmtIds);

}
